package cn.lyh.FoodSystem.Dao;


import cn.lyh.FoodSystem.Entity.Entry;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface EntryDao extends JpaRepository<Entry,Integer>, JpaSpecificationExecutor<Entry> {

    List<Entry> findByCourseId(String courseId);


    List<Entry> findByUserId(String userId);
}
